package cn.redis.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author yexi
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Entity implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String description;

    private Date date;

    private LocalDateTime localDateTime;

    public static Entity createDemoData() {
        return Entity.builder().id(1L).description("描述").date(new Date()).localDateTime(LocalDateTime.now()).build();
    }

}